package com.zxn.school;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/22 14:04
 * @description
 */
public class Student1 {
    private int sid;//学生id
    private String name;//名字
    private String sex;//性别
    private double score;//成绩
    private int tid;//所属老师id



    public Student1() {
    }

    public Student1(int sid, String name, String sex, double score, int tid) {
        this.sid = sid;
        this.name = name;
        this.sex = sex;
        this.score = score;
        this.tid = tid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    @Override
    public String toString() {
        return "Student1{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", score=" + score +
                ", tid=" + tid +
                '}';
    }
}
